import { ComponentInternalInstance, getCurrentInstance } from "vue";

export default function useCurrentInstance() {
	const {
		appContext: {
			config: { globalProperties }
		}
	} = getCurrentInstance() as ComponentInternalInstance;

	return globalProperties;
}
